#!/bin/sh

cat > /etc/pam.d/system-session << "EOF"
# Begin /etc/pam.d/system-session

session  required    pam_unix.so
session  required    pam_loginuid.so
session  optional    pam_systemd.so

# End /etc/pam.d/system-session
EOF

systemd-machine-id-setup

systemctl preset-all

systemctl disable systemd-time-wait-sync.service
